/* Layout */
import Layout from '@/layout';

export default {
  path: '/master',
  name: 'master',
  component: Layout,
  redirect: 'noRedirect',
  meta: { title: '管理中心', icon: 'dashboard', roles: ['米米法'] },
  children: [
    {
      path: 'data-up',
      meta: { title: '数据中心', icon: 'dashboard' }
    },
    {
      path: 'role',
      name: 'role',
      component: () => import('@/views/mivawork/role/index.vue'),
      meta: { title: '角色管理', icon: '账号权限管理', roles: ['九条米法'] }
    },
    {
      path: 'member',
      name: 'member',
      redirect: 'noRedirect',
      component: () => import('@/views/miva-admin/account/index.vue'),
      meta: { title: '用户管理', icon: 'form', roles: ['九条米法'] },
      children: [
        {
          path: '/',
          hidden: true,
          redirect: 'users'
        },
        {
          path: 'users',
          hidden: true,
          component: () => import('@/views/miva-admin/account/users/index.vue'),
          meta: { title: '用户列表', animation: false, icon: 'table', activeMenu: '/master/member' }
        },
        {
          path: 'admins',
          hidden: true,
          component: () => import('@/views/mivawork/account/index.vue'),
          meta: { title: '管理员列表', animation: false, icon: 'table', activeMenu: '/master/member' }
        }
      ]
    },
    {
      path: 'audio',
      meta: { title: '音频管理', icon: 'dashboard' }
    },
    {
      path: 'resource',
      name: 'resource',
      component: () => import('@/views/mivawork/resource/index.vue'),
      meta: { title: '资源管理', icon: 'dashboard' }
    }
  ]
};

